﻿using System.Collections;
using System.Collections.Generic;

namespace Inovout.Data.Domain
{
    public interface ITreeDataObject 
    {
        object Parent { get; set; }
        IEnumerable Children { get; }
    }
    public interface ITreeDataObject<TModel> : ITreeDataObject where TModel : ITreeDataObject<TModel>
    {
        new TModel Parent { get; set; }
        new ISet<TModel> Children { get; }
    }
}
